﻿namespace Algoritmia.DataStructures
{
    public interface ICountable
    {
        int Count { get; }
    }

    //static public class CountableExtensionMethods
    //{
    //    static public int NumberOfElements<T>(this IEnumerable<T> self)
    //    {
    //        var countable = self as ICountable;
    //        if (countable != null)
    //            return countable.Count;
    //        return self.Count();
    //    }

    //}
}
